$package("boc.html");
$import("boc.html.HtmlUtil");
boc.html.FormELUtil = function (){
	boc.html.HtmlUtil.call(this);
	this.disable=FormElUtil._Disable
	this.setDisable=FormElUtil._Disable;
	this.enable=FormElUtil._Enable;
	this.setEnable=FormElUtil._Enable;
}
var FormElUtil=boc.html.FormELUtil;

FormElUtil._Disable=function(){
	this.disabled=true;
}
FormElUtil._Enable=function(){
	this.disabled=false;
}
FormElUtil.applyTo=FormElUtil.apply;
FormElUtil.applyAll=function(){
	var forms=document.getElementsByTagName("form");
	for(var i=forms.length-1;i>=0;i--)
	{
		var f=forms[i];
		for(var j=f.elements.length-1;j>=0;j--)
		{
			FormElUtil.call(f.elements[j]);
		}
		FormElUtil.call(f);
	}
}